home *** CD-ROM | disk | FTP | other *** search
/ Cream of the Crop 3 / Cream of the Crop 3.iso / clipper / ks94an.zip / ITOBS.HDR < prev    next >
Text File  |  1994-04-25  |  957b  |  40 lines

  1. /******************************************************************************
  2.                  The Klipper Library, for CA-Clipper 5.x
  3.         Copyright (c), 1994, Wallace Information Systems Engineering
  4.  
  5. FUNCTION:
  6.  
  7. _IToBS( nInteger, nMax ) --> cBitString
  8.  
  9. PARAMETERS:
  10.  
  11. nInteger : Integer to convert to binary STRING
  12. nMax     : Maximum Number of Binary Digits to use (See Description)
  13.  
  14. SHORT:
  15.  
  16. Convert a base 10 integer to binary string (up to 52 binary digits).
  17.  
  18. DESCRIPTION:
  19.  
  20. _IToBS() accepts an integer and returns a STRING representing the
  21. binary equivalent.  Leading zeros are not provided.  If you need them, pad
  22. the result to the desired length.
  23.  
  24. The largest known possible integer that can be so converted is:
  25. 9,999,999,999,999,998.
  26.  
  27. NOTE:
  28.  
  29.  
  30.  
  31. EXAMPLE:
  32.  
  33. t = _itobs(13)
  34. Result: t = '1101'
  35.  
  36. t = _itobs(128)
  37. Result: t = '10000000'
  38.  
  39. ******************************************************************************/
  40.